import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { 
      path: '/',
      name: 'login',
      component: () => import('../views/Login.vue')
    }, 
    {
      path: '/dataInfo',
      name: 'DataInfo',
      component: () => import('../views/DataInfo.vue')
    },
    {
      path: '/chars',
      name: 'Chars',
      component: () => import('../views/Chars.vue')
    },
    {
      path: '/dataList',
      name: 'DataList',
      component: () => import('../views/DataList.vue')
    },
    {
      path: '/pie',
      name: 'Pie',
      component: () => import('../views/Pie.vue')
    },
    {
      path: '/histogram',
      name: 'Histogram',
      component: () => import('../views/Histogram.vue')
    }
  ]
})

export default router
